<template>
    <div class=''>
        <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
            <van-swipe-item v-for="(item,index) in slist" :key="index">
                <img :src="item.imgPath" alt="">
            </van-swipe-item>
        </van-swipe>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                slist:[],
            };
        },
        mounted() {
            this.$axios.post("/resources/carousel").then((res)=>{
                console.log(res)
                this.slist = res.data.carousel
            })
        },
        methods: {},
    };
</script>

<style lang='scss'>
img{
    width: 100%;
}
</style>